<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<form id="form0" title="form0">
<script type="text/javascript">
	//var pb = new PlanetBirthday();
	var today = new Date();
	var form = document.getElementById('form0');
	var monthNames = [ null, "January", "February", "March", "April", "May",
			"June", "July", "August", "September", "October", "November",
			"December" ];
	createDaysDropDown = function() {
		var selectElement = document.createElement("SELECT");
		selectElement.name = "day";
		selectElement.id = "day";
		var t;
		for ( var i = 1; i < 32; ++i) {
			var dateText = i;
			if (dateText < 10)
				dateText = "0" + dateText;
			t = new Option(i, dateText);
			selectElement.options.add(t);
		}
		selectElement.selectedIndex = today.getDate() - 1;
		form.appendChild(selectElement);
	}
	createMonthsDropDown = function() {
		var selectElement = document.createElement("SELECT");
		selectElement.name = "month";
		selectElement.id = "month";
		var t;
		for ( var i = 0; i < 12; ++i) {
			t = new Option(monthNames[i + 1], i);
			selectElement.options.add(t);
		}
		selectElement.selectedIndex = today.getMonth();
		form.appendChild(selectElement);
	}
	createYearsDropDown = function() {
		var selectElement = document.createElement("SELECT");
		selectElement.name = "year";
		selectElement.id = "year";
		var t;
		var thisYear = today.getFullYear();
		for ( var i = thisYear; i > thisYear - 100; --i) {
			t = new Option(i, i);
			selectElement.options.add(t);
		}
		form.appendChild(selectElement);
	}

	createDaysDropDown()
	createMonthsDropDown()
	createYearsDropDown();
</script>
</form>
</body>
</html>